//替换滚动条加载更多
let ob = new IntersectionObserver(function (entries) {
  let entry = entries[0]
  console.log(entry)
  if (entry.isIntersecting) {
    //进入加载更多
  }
}, {
  threshold:0.1
})
//观察
ob.observe(document.getElementById('#id'))